{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        <div class="row">
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>新增内容</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                            <tr>
                                <td class="no-borders">
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td class="no-borders">
                                    今日内容
                                    <b>
                                        {:db('dymanic')->whereTime('addtime','today')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    本周内容
                                    <b>
                                        {:db('dymanic')->whereTime('addtime','week')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    本月内容
                                    <b>
                                        {:db('dymanic')->whereTime('addtime','month')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    总共内容
                                    <b>
                                        {:db('dymanic')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>新增评论</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                            <tr>
                                <td class="no-borders">
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td class="no-borders">
                                    今日评论
                                    <b>
                                        {:db('dycomment')->whereTime('addtime','today')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    本周评论
                                    <b>
                                        {:db('dycomment')->whereTime('addtime','week')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    本月评论
                                    <b>
                                        {:db('dycomment')->whereTime('addtime','month')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    总共评论
                                    <b>
                                        {:db('dycomment')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>新增会员</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                            <tr>
                                <td class="no-borders">
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td class="no-borders">
                                    今日会员
                                    <b>
                                        {:db('user')->whereTime('register_datetime','today')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    本周会员
                                    <b>
                                        {:db('user')->whereTime('register_datetime','week')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    本月会员
                                    <b>
                                        {:db('user')->whereTime('register_datetime','month')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    总共会员
                                    <b>
                                        {$data.users}
                                    </b>
                                    个
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>
        <div class="row">
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>数据统计</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                            <tr>
                                <td class="no-borders">
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td class="no-borders">
                                    总流水
                                    <b>
                                        <span style="color: #f00; ">{:number_format($data.platform_balance, 2)}</span>
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    活跃人数
                                    <b>
                                        <span style="color: #f00; ">{$data.login_user}</span>
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    新增付费人数
                                    <b>
                                        <span style="color: #f00; ">{$data.cost_user}</span>
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    新增流水
                                    <b>
                                        <span style="color: #f00; ">{:number_format($data.new_liushui, 2)}</span>
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    新增ARPU
                                    <b>
                                        <span style="color: #f00; ">{:number_format($data.new_arpu * 100,2)} %</span>
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    新增ARPPU
                                    <b>
                                        <span style="color: #f00; ">{:number_format($data.new_arppu * 100,2)} %</span>
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    新增注册
                                    <b>
                                        <span style="color: #f00; ">{$data.new_user}</span>
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    新增付费率
                                    <b>
                                        <span style="color: #f00; ">{:number_format($data.new_cost_rate * 100,2)} %</span>
                                    </b>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>用户基本数据</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                            <tr>
                                <td class="no-borders">
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td class="no-borders">
                                    实名认证
                                    <b>
                                        {$data.auth_user}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    VIP用户
                                    <b>
                                        {$data.vip_user}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    普通用户
                                    <b>
                                        {$data.general_user}
                                    </b>
                                    个
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>会员细分分析</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                            <tr>
                                <td class="no-borders">
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td class="no-borders">
                                    活跃会员
                                    <b>
                                        {$data.login_user}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    沉睡会员
                                    <b>
                                        {$data.users - $data.login_user}
                                    </b>
                                    个
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!--<div class="col-sm-4">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>最新评论</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content" style="display: block;">
                        <div class="feed-activity-list">
                            {volist name="ping" id="v"}
                            <div class="feed-element">
                                <div>
                                    <strong><?php
$user=_user($v['userid']);
echo $user['name'];
                                    ?></strong>
                                    <div>评论：{$v.content}</div>

                                    <small class="text-muted">
                                        {$v.addtime}
                                    </small>
                                </div>
                            </div>
                            {/volist}
                        </div>
                    </div>
                </div>
            </div>-->
            <div class="col-sm-4">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>关于我们</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <table class="table table-hover no-margins">
                            <tbody>
                            <tr>
                                <td style="border-top: 0px;">PHP版本：<span>{:phpversion()}</span></td>
                                <td style="border-top: 0px;">操作系统：<span>{:PHP_OS}</span></td>
                            </tr>
                            <tr>
                                <td>上传限制：<span>{:ini_get('upload_max_filesize')}</span></td>
                                <td>POST限制：<span>{:ini_get('post_max_size')}</span></td>
                            </tr>
                            <tr>
                                <td>更新版本：<span>{:config('version.date')}</span></td>
                                <td>程序版本：<span>{:config('version.release')}</span></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
{include file="public/footer" /}